<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Exil:  Fichier source de src/Population.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Exil
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Structures&#160;de&#160;données</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Variables&#160;globale</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">src/Population.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_population_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef POPULATION_H</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define POPULATION_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="_personnage_8h.html">Personnage.h</a>&quot;</span>
<a name="l00011"></a>00011 
<a name="l00018"></a><a class="code" href="struct_population.html">00018</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00019"></a>00019 {
<a name="l00020"></a><a class="code" href="struct_population.html#a567a0196cdc1636919f5093d0e25f4b6">00020</a>   <a class="code" href="struct_pers_str.html">Personnage</a> *<a class="code" href="struct_population.html#a567a0196cdc1636919f5093d0e25f4b6">membres</a>;   
<a name="l00021"></a><a class="code" href="struct_population.html#ae579683f7c9d391b83c6671d4da1c99a">00021</a>   <a class="code" href="struct_pers_str.html">Personnage</a> *<a class="code" href="struct_population.html#ae579683f7c9d391b83c6671d4da1c99a">dernierPersonnage</a>; <span class="comment">/*&lt;lien sur le dernier personnage de la liste */</span>
<a name="l00022"></a><a class="code" href="struct_population.html#aa3f7e2c9616bd2e6ef94aa78383ba7f5">00022</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct_population.html#aa3f7e2c9616bd2e6ef94aa78383ba7f5">effectifTotal</a>;   
<a name="l00023"></a><a class="code" href="struct_population.html#afeb0a76297511e2c020635abde2ea3fc">00023</a>   <span class="keywordtype">int</span> <a class="code" href="struct_population.html#afeb0a76297511e2c020635abde2ea3fc">fecondite</a>;   
<a name="l00024"></a><a class="code" href="struct_population.html#ab3ee98963d15fcece83ed5db6102f0e6">00024</a>   <span class="keywordtype">int</span> <a class="code" href="struct_population.html#ab3ee98963d15fcece83ed5db6102f0e6">mortalite</a>;   
<a name="l00025"></a><a class="code" href="struct_population.html#a3afd1e545ceb4098dacfe6f41d04b94f">00025</a>   <span class="keywordtype">int</span> <a class="code" href="struct_population.html#a3afd1e545ceb4098dacfe6f41d04b94f">immigration</a>;   
<a name="l00026"></a><a class="code" href="struct_population.html#a2685d56a208c73dbe7e57fd21c92427f">00026</a>   <span class="keywordtype">int</span> <a class="code" href="struct_population.html#a2685d56a208c73dbe7e57fd21c92427f">emigration</a>;   
<a name="l00027"></a><a class="code" href="struct_population.html#a4061734f17f23218c76ff5f72b58d5b3">00027</a>   <span class="keywordtype">int</span> <a class="code" href="struct_population.html#a4061734f17f23218c76ff5f72b58d5b3">moral</a>;   
<a name="l00028"></a><a class="code" href="struct_population.html#aee83c8ecefbad413881a17474a1dccbb">00028</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct_population.html#aee83c8ecefbad413881a17474a1dccbb">nbPersonnagesAffames</a>;   
<a name="l00029"></a><a class="code" href="struct_population.html#acd796e1ccf7cf47f3c7afc8505f00176">00029</a>   <a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *<a class="code" href="struct_population.html#acd796e1ccf7cf47f3c7afc8505f00176">tabComp</a>;     
<a name="l00030"></a>00030 } <a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>;
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="comment">/*===================Fonctions======================*/</span>
<a name="l00034"></a>00034 
<a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#a18ee8396081c29d0f7f9e151a79dbe6f" title="Initialise les valeurs de la population.">initPopulation</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00041"></a>00041 
<a name="l00047"></a>00047 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#a7fe9136b97e3e699811ad257fabd1173" title="Initialise la population.">creerPopulation</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>** population);
<a name="l00048"></a>00048 
<a name="l00054"></a>00054 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#ac25efbe53d8168a16aee61224402611b" title="Ajoute un membre à lapopulation.">ajouterMembre</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00055"></a>00055 
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#afc075b103ba246b12537994cc0366119" title="Retire un membre à la population.">retirerMembre</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population, <a class="code" href="struct_pers_str.html">Personnage</a> *personnage);
<a name="l00062"></a>00062 
<a name="l00068"></a>00068 <a class="code" href="struct_pers_str.html">Personnage</a>* <a class="code" href="_population_8c.html#a5bb6102901f0425cec5bfd294924b5f1" title="récupère le liens vers un personnage">getPersonnage</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct_pers_str.html#a0dd14fb57e3d3cc6b6fc5633c6ce65d5">ID</a>);
<a name="l00069"></a>00069 
<a name="l00074"></a>00074 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_population_8c.html#acc250da91ff001ef2f0bb57c87ba7f69" title="récupère la valeur de l&#39;effectif de la population.">getEffectifTotal</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00075"></a>00075 
<a name="l00080"></a>00080 <span class="keywordtype">int</span> <a class="code" href="_population_8c.html#af481eadf1370312db5e5b29308a01e00" title="récupère le taux de fécondité de la population.">getFecondite</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00081"></a>00081 
<a name="l00086"></a>00086 <span class="keywordtype">int</span> <a class="code" href="_population_8c.html#aa2869cbd89376647d64c82ba9a001217" title="récupère la valeur du taux de mortalité de la population.">getMortalite</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00087"></a>00087 
<a name="l00088"></a>00088 
<a name="l00093"></a>00093 <span class="keywordtype">int</span> <a class="code" href="_population_8c.html#ac71c5cb4a3d4afe4bed542fdb855bda5" title="récupère le nombre d&#39;immigrants arrivant dans la population.">getImmigration</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00094"></a>00094 
<a name="l00095"></a>00095 
<a name="l00100"></a>00100 <span class="keywordtype">int</span> <a class="code" href="_population_8c.html#a8fdadb9d86c08fe726019c4252b00439" title="récupère le nombre d&#39;emigrants de la population.">getEmigration</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00101"></a>00101 
<a name="l00102"></a>00102 
<a name="l00107"></a>00107 <span class="keywordtype">int</span> <a class="code" href="_population_8c.html#a1cb2a58c33a3591b1fe6597953cd1094" title="récupère la valeur de moral de la population.">getMoral</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00108"></a>00108 
<a name="l00113"></a>00113 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="_population_8c.html#a7870ad0662aac75a370cdfa87e504cf5" title="récupère le nombre de personnes affamées dans la population.">getNbPersAffames</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00114"></a>00114 
<a name="l00120"></a>00120 <a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *<a class="code" href="_population_8c.html#ac0ac1d3144053d659497c2a708139a60" title="récupère le tableau des comportements possibles pour les membres de la population">getTabCompPop</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00121"></a>00121 
<a name="l00126"></a>00126 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#ac5d64883d7c6890383958baeebfe5087" title="ajoute la valeur passée en argument à l&#39;effectif total">setEffectifTotal</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population, <span class="keyword">const</span> <span class="keywordtype">int</span> varEffectif);
<a name="l00127"></a>00127 
<a name="l00132"></a>00132 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#a92b527e083e0f425c4e99f878abcbe2c" title="ajoute la valeur passée en argument au taux de fécondité">setFecondite</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population, <span class="keyword">const</span> <span class="keywordtype">int</span> varFecondite);
<a name="l00133"></a>00133 
<a name="l00134"></a>00134 
<a name="l00139"></a>00139 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#af8662b4282672b44fa9689a564ccd826" title="ajoute la valeur passée en argument au taux de mortalité">setMortalite</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population, <span class="keyword">const</span> <span class="keywordtype">int</span> varMortalite);
<a name="l00140"></a>00140 
<a name="l00145"></a>00145 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#a2beba189cc4a0f00efb0aa29c5f8b62c" title="ajoute la valeur passée en argument au nombre d&#39;immigrants">setImmigration</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population, <span class="keyword">const</span> <span class="keywordtype">int</span> varImmigration);
<a name="l00146"></a>00146 
<a name="l00151"></a>00151 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#ae3e30fd08ae609d7b7f0b90b713cc88b" title="ajoute la valeur passée en argument au nombre d&#39;emigrants">setEmigration</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population, <span class="keyword">const</span> <span class="keywordtype">int</span> varEmigration);
<a name="l00152"></a>00152 
<a name="l00157"></a>00157 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#aaf27d5041730a24bc26ec856ff850808" title="ajoute la valeur passée en argument au moral de la population">setMoral</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population, <span class="keyword">const</span> <span class="keywordtype">int</span> varMoral);
<a name="l00158"></a>00158 
<a name="l00163"></a>00163 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#ac532eae2d6e66a615381ba3d305e01d2" title="ajoute la valeur passée en argument au nombre de personnes affamées">setNbPersAffames</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> varNbPersAffames);
<a name="l00164"></a>00164 
<a name="l00170"></a>00170 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#aca5b33d4336888f94d37ff2f8b57872d" title="attribue au champ tabComp un tableau des comportements passé en paramètre">setTabCompPop</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population, <a class="code" href="struct_tab_comp.html" title="Structure comportant la table des Comportements.">TabComp</a> *tabComp);
<a name="l00171"></a>00171 
<a name="l00176"></a>00176 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#a310b4ec134cc9023b150f090c7ef3daf" title="libère la mémoire occupée par le tableau de membres">detruireMembres</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00177"></a>00177 
<a name="l00182"></a>00182 <span class="keywordtype">void</span> <a class="code" href="_population_8c.html#a286e1d4c71407fd56090fb598e730087" title="libère la mémoire occupée par la population">detruirePopulation</a>(<a class="code" href="struct_population.html" title="Informations définissant la population.">Population</a>* population);
<a name="l00183"></a>00183 
<a name="l00184"></a>00184 <span class="preprocessor">#endif</span>
<a name="l00185"></a>00185 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Structures de données</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Définitions de type</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Mardi Juin 4 2013 00:35:14 pour Exil par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
